﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Xml;
using System.IO;

public partial class Default2 : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void Button1_Click(object sender, EventArgs e)
    {
        XmlDocument doc = new XmlDocument();
        doc.LoadXml("<data><chat>" + txt_chat.Text + "</chat></data>");
        doc.Save(Server.MapPath("~/pages/data/xml" + Directory.GetFiles(@"E:\www\binhduongworks.com\pages\data", "*.xml").Length + ".xml"));
	txt_chat.Text="";
    }
}